package com.ostrich.cloud.ostrichOrderService;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;


@SpringBootApplication(scanBasePackages = "com.ostrich.cloud.ostrichOrderService")//多模块项目需要手动指定路径，扫描所有模块
@MapperScan("com.ostrich.cloud.ostrichOrderService.infra.mapper")
@EnableFeignClients(basePackages = "com.ostrich.cloud.*.client")//扫描所有的feign-client，注意项目的包路径需要符合要求
public class OstrichOrderServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(OstrichOrderServiceApplication.class, args);
    }

}
